#include <stdio.h>
int main()
{
	int arr[] = { 10,9,8,7,6,5,4,3,2,1, };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int i = 0 ;
	for (i = 0; i < sz-1; i++)
	{

		int j = 0;
		for (j = 0; j < sz - 1 - i; j++)
		{

			if (arr[j] > arr[j + 1])
			{
				int p = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = p;
			}
		}
	}
		int a=0 ;
		for (a = 0; a < sz; a++)
		{
			printf("%d ", arr[a]);
		}
	return 0;
}